package com.gjy.sb.config;

import com.google.common.collect.Maps;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Map;
import java.util.concurrent.TimeUnit;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-07-02 09:57:49
 */
@Configuration
public class TimeoutBeanConfig {

    @Bean("timeoutMap")
    public Map<String, String> timeoutMap() {
        Map<String, String> map = Maps.newHashMap();
        map.put("TIMEOUT", "OO");
        try {
            TimeUnit.SECONDS.sleep(5);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        return map;
    }
}
